import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;

import curso.spring.utilConnection.connection.ConnectionFactory;
public class TestConnection {

	
public static void main(String[] args) {
		try {
			
			Connection con = ConnectionFactory.getConnection().dameConexion();
			ResultSet r = con.createStatement().executeQuery(" SHOW TABLES ");
			while (r.next()){
				System.out.println(r.getString(1));
			}
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}
}
